From 7421cbc2b48f00a4c0902aa6257f7f76e9ab0ca2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9my=20Lal?= Date: Wed, 22 Jul 2020 09:36:58 +0100 Subject: [PATCH] a test uses a benchmark that read alice.html, dfsg excluded Forwarded: not-needed Reviewed-By: Xavier Guimard Last-Update: 2020-03-04 Gbp-Pq: Name benchmark_without_alice.patch --- benchmark/buffers/buffer-indexof-number.js | 2 +- benchmark/buffers/buffer-indexof.js | 2 +- benchmark/http2/compat.js | 2 +- benchmark/http2/respond-with-fd.js | 2 +- benchmark/http2/simple.js | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/buffers/buffer-indexof-number.js b/benchmark/buffers/buffer-indexof-number.js index b00a46524..3c4e42215 100644 --- a/benchmark/buffers/buffer-indexof-number.js +++ b/benchmark/buffers/buffer-indexof-number.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { function main({ n, value }) { const aliceBuffer = fs.readFileSync( - path.resolve(__dirname, '../fixtures/alice.html') + path.resolve(__dirname, '../../doc/api/all.html') ); let count = 0; diff --git a/benchmark/buffers/buffer-indexof.js b/benchmark/buffers/buffer-indexof.js index 4c0993a1e..c08f93114 100644 --- a/benchmark/buffers/buffer-indexof.js +++ b/benchmark/buffers/buffer-indexof.js @@ -26,7 +26,7 @@ const bench = common.createBenchmark(main, { function main({ n, search, encoding, type }) { let aliceBuffer = fs.readFileSync( - path.resolve(__dirname, '../fixtures/alice.html') + path.resolve(__dirname, '../../doc/api/all.html') ); if (encoding === 'undefined') { diff --git a/benchmark/http2/compat.js b/benchmark/http2/compat.js index 2c7e732b0..4638dd3bc 100644 --- a/benchmark/http2/compat.js +++ b/benchmark/http2/compat.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000], diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index 5bf5988d1..30de00404 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -4,7 +4,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000], diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index 929c4c655..ab285bec5 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -3,7 +3,7 @@ const common = require('../common.js'); const path = require('path'); const fs = require('fs'); -const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); +const file = path.join(path.resolve(__dirname, '../../doc/api'), 'all.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 5000], -- 2.30.2